@import url("./base.css");

body.center {
	height: max-content;
	padding-bottom: 40px;
	justify-content: flex-start;
}

.logo {
	font-size: 0;
	text-indent: -99em;
	margin: 50px 0;
	width: 77px;
	min-height: 147px;
	background: url(/src/asset/img/logo_dark.png) no-repeat top center;
}

.upload_container input {
	width: 100%;
	height: 100%;
	display: none;
}

.upload_container label {
	width: var(--commonWidth);
	height: 200px;
	flex-direction: column;
	border: 4px dashed #999;
	cursor: pointer;
	text-align: center;
	user-select: none;
	box-shadow: 0px 0px 30px 4px rgb(153, 153, 153, .8);
}

.upload_container label p {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 6px;
}

.upload_container label .subtext {
	font-size: 14px;
}

.clip_container {
	width: 1200px;
	display: flex;
	justify-content: space-evenly;
}

.clip_left {
	width: var(--commonWidth);
	position: relative;
	border-top: var(--commonMargin) solid var(--btnColor);
	border-left: var(--commonMargin) solid var(--btnColor);
}

.scroll_box {
	border: 1px solid var(--btnColor);
	margin: 1px 0 0 1px;
	height: 900px;
	overflow: hidden scroll;
}

.ruler_area {
	position: absolute;
	width: var(--commonMargin);
	height: var(--commonMargin);
	cursor: grab;
	cursor: -webkit-grab;
}

.top_area {
	top: -20px;
	left: 0;
	width: 100%;
	background-image: url(/src/asset/img/ruler_top.png);
	background-repeat: repeat-x;
}

.left_area {
	height: 100%;
	top: 0;
	left: -20px;
	background-image: url(/src/asset/img/ruler.png);
	background-repeat: repeat-y;
}

.canvas_box {
	position: relative;
}

.clip_left canvas {
	width: 100%;
	height: max-content;
}

.clip_right_menu {
	width: 300px;
	padding-top: var(--commonMargin);
}

.edit_box {
	margin-bottom: calc(var(--commonMargin) * 2);
}

.edit_box label {
	display: block;
	margin-top: 10px;
}

.edit_box input[type="text"] {
	margin-left: 6px;
}

.clip_line {
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgb(74, 255, 255);
	box-shadow: 0 0 6px rgb(74, 255, 255);
	cursor: default;
}

.row_line {
	height: 2px;
	width: 100%;
	top: 4px;
}
.row_line::after {
	content: '';
	display: block;
	width: 100%;
	height: calc(100% + 16px);
	transform: translate(0, -50%);
}
.col_line {
	width: 2px;
	height: 100%;
	left: 4px;
}
.col_line::after {
	content: '';
	display: block;
	width: calc(100% + 16px);
	height: 100%;
	transform: translate(-50%, 0);
}
.line_edit_status {
	box-shadow: 0 0 6px rgb(255, 0, 0, 0.8);
	z-index: 2;
}

details .subtext {
	font-size: 14px;
}

/* 当系统启用暗色模式时应用以下样式 */
@media (prefers-color-scheme: dark) {
	* {
		color: #e5e5e5;
	}

	body {
		background-color: black;
	}

	.logo {
		background: url(/src/asset/img/logo_light.webp) no-repeat top center;
	}
}
